#include <iostream>

#include <boost/asio.hpp>

#include "Server.hpp"

int main()
{
	SetConsoleTitle("Authentication [ RagazzoTM ]");

	try
	{
		std::cout
			<< "--------------------------------------------------" << std::endl
			<< "                    C R A S H                     " << std::endl
			<< "--------------------------------------------------" << std::endl;

		boost::asio::io_service io_service;
		Server Server(io_service, boost::asio::ip::tcp::endpoint(boost::asio::ip::tcp::v4(), 4003));
		io_service.run();
	}
	catch (std::exception &ec)
	{
		std::cerr << ec.what() << std::endl;
	}

	return 0;
}